package com.meilai.project.mapper.personal.mission;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.dto.personal.mission.MissionSearchDTO;
import com.meilai.project.entity.personal.mission.Mission;
import com.meilai.project.vo.personal.mission.MissionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 张驰
 * @since 2022-03-24
 */
@Mapper
public interface MissionMapper extends BaseMapper<Mission> {
    List<MissionVO> selectPageList(Page<MissionVO> page, @Param("searchDTO") MissionSearchDTO dto);

    List<MissionVO> selectMyMissionList(Page<MissionVO> page, @Param("searchDTO") MissionSearchDTO dto, @Param("userId") Long userId);

}
